import { createClient, SupabaseClientOptions } from '@supabase/supabase-js'

// const supabaseUrl = 'http://192.168.80.169:18000'
// const supabaseAnonKey = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.ewogICAgInJvbGUiOiAiYW5vbiIsCiAgICAiaXNzIjogInN1cGFiYXNlIiwKICAgICJpYXQiOiAxNjgzNzM0NDAwLAogICAgImV4cCI6IDQ4MzczMzQ0MDAKfQ.-JwrhbOs85JzxzZQI0FRVB5dcaVUeKcwEdyvvhk7ErA'

const supabaseUrl = 'https://cp11hhnhf27rf6prpt1g.baseapi.testaliyun.memfiredb.com'
const supabaseAnonKey = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImV4cCI6MzI5MjQwNzc1MCwiaWF0IjoxNzE1NjA3NzUwLCJpc3MiOiJzdXBhYmFzZSJ9.G5J-u_6T9NHDX6WxFWl4dAH4vsclHdUViAqNvaCT1pU'


// const supabaseUrl = 'https://chsrd725g6h5foidrt00.baseapi.memfiredb.com'
// const supabaseAnonKey = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImV4cCI6MzIyMzYxODIwNCwiaWF0IjoxNjg1Njk4MjA0LCJpc3MiOiJzdXBhYmFzZSJ9.nWvFKJSElFfDA9sSxrftgZt0SK-5I25PQnOXVU4HudI'

export const supabase = createClient(
    supabaseUrl,
    supabaseAnonKey,
    {
        "global": {
            "headers": {
                'TTTTTT': 'application/x-www-form-urlencoded'
            }
        }
    }
)